<template>
  <view
    class="page-body"
    @click="handleClick"
  >
    首页

  </view>
</template>

<script>
import { test } from "@/api/api";
export default {
  data() {
    return {};
  },

  methods: {
    handleClick() {
      const obj = {
        a: 1,
        b: 3,
      };

      // test(obj).then((res) => {
      //   console.log(res);
      // });
      // return;
      this.$router.navigateTo({
        path: "/pages/Login/index",
        query: obj,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
</style>